<template>
</template>

<script>
	export default {
		name:'showData',
		beforeRouteEnter (to, from, next) {
		    next(vm => {
				if(from.name=='mainData' || from.name=='mainView'){
					vm.$router.go(-1);
				}else{
					if(Number(localStorage.getItem("monitorMode"))==1){
						vm.$router.push({
							path: '/mainView',
							name: 'mainView',
							component: 'mainView',
							query:{
								'fromPage':from.name,
								'fromOrder':from.meta.order
							}
						}) 
					}else{
						vm.$router.push({
							path: '/mainData',
							name: 'mainData',
							component: 'mainData',
							query:{
								'fromPage':from.name,
								'fromOrder':from.meta.order
							}
						}) 
						
					}
				}
		    })
		},
		created(){
			
	    },
		mounted(){
			//window.location="static/index.html"
			
		}
		
	}
</script>

<style>
</style>
